<template>
  <div id="app">
    <h3>{{name}},恭喜你成功创建了Vue项目</h3>
    <div id="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> |
      <router-link to="/stu">学生模块</router-link> |
      <router-link to="/love">YDD&XHH</router-link>
    </div>
    <router-view/>
  </div>
</template>

<script>
  export default {//暴露当前组件对象，暴露组件是为了让别的组件可以import
    name:"App",
    data(){
      return {
        name:"AnonyEast"
      }
    }
  }
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
